log using $DIRLOG/Replication/tab-firstststagetrue_robdestyear.txt, text replace
*
use tempfirst, clear
global depvar = "theil"
global depvar_d1 = "theil_d1"
egen destyear = group( iso2_d isic year )
egen iso2_d_id = group(iso2_d)
reghdfe $depvar ltradeshock3  ,   absorb(firmiso destyear) vce(cluster iso2_d_id)
reghdfe $depvar_d1 ltradeshock6  ,   absorb(firmiso destyear) vce(cluster iso2_d_id)
log close
